package com.yutianran.mark.shatter;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.yutianran.mark.base.BaseShatter;
import com.yutianran.ezutil.LogUtil;

/**
 * @author Kale
 * @date 2017/10/23
 */
public class LifeShatter extends BaseShatter {

    @Override
    protected int getLayoutResId() {
        return NO_LAYOUT;
    }

    @Override
    protected void bindViews(View rootView) {

    }

    @Override
    protected void setViews() {

    }

    @Override
    protected void onAttach(Activity activity) {
        super.onAttach(activity);
        LogUtil.print( "onAttach() called with: mActivity = [" + activity + "]");
    }

    @Override
    protected void onCreate() {
        super.onCreate();
        LogUtil.print( "onCreate() called");
    }

    @Override
    public void onActStart() {
        LogUtil.print( "onStart() called");
    }

    @Override
    public void onActResume() {
        LogUtil.print( "onResume() called");
    }

    @Override
    public void onActPause() {
        LogUtil.print( "onPause() called");
    }

    @Override
    public void onActStop() {
        LogUtil.print( "onStop() called");
    }

    @Override
    public void onActRestoreInstanceState(Bundle savedInstanceState) {
        LogUtil.print( "onRestoreInstanceState() called with: savedInstanceState = [" + savedInstanceState + "]");
    }

    @Override
    public void onActSaveInstanceState(Bundle outState) {
        LogUtil.print( "onSaveInstanceState() called with: outState = [" + outState + "]");
        outState.putString("name", "kale");
    }

    @Override
    public void onActDestroy() {
        LogUtil.print( "onDestroy() called");
    }

    @Override
    public void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        LogUtil.print( "onActivityResult() called with: requestCode = [" + requestCode + "], resultCode = [" + resultCode + "], data = [" + data + "]");
    }
}
